package com.young.core.domain;

import javax.annotation.Nullable;
import java.io.Serializable;
import java.util.Date;

/**
 * 有broker触发的任务执行时间
 */
public class TriggerDO implements Serializable {

    private int id;
    private int jobId;
    private String project;
    private String ip;
    private Long ts;
    private int version;
    @Nullable
    private transient JobDO job;
    private Date createTime;
    private Date updateTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getJobId() {
        return jobId;
    }

    public void setJobId(int jobId) {
        this.jobId = jobId;
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Long getTs() {
        return ts;
    }

    public void setTs(Long ts) {
        this.ts = ts;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    @Nullable
    public JobDO getJob() {
        return job;
    }

    public void setJob(@Nullable JobDO job) {
        this.job = job;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
